home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / demos / 120 / gfa / tidbits.doc < prev    next >
Encoding:
Text File  |  1987-04-17  |  3.2 KB  |  103 lines

  1.                    XBIOS  /  BIOS  /  GEMDOS    TID BITS
  2.  
  3.  
  4. Most XBIOS, BIOS, and GEMDOS functions are already implemented in GFA Basic.
  5. However, there a few that are very usefull, but are not implemented in GFA.
  6.  
  7. This is a short list of those functions and how to use them from GFA.
  8.  
  9.                                                     Jim Luczak  02/28/87
  10.  
  11. -----------------------------------------------------------------------------
  12.  
  13. FUNCTION        DESCRIPTION                     GFA BASIC LISTING
  14.  
  15.  
  16. GEMDOS (25)     CURRENT DRIVE                   Curr_drv = Gemdos (25)
  17.  
  18.         The Currently Active Disk Drive Number is returned.
  19.  
  20.         0 = A:
  21.         1 = B:
  22.         2 = C:
  23.         3 = D:
  24.         Ect.
  25.  
  26. ------------------------------------------------------------------------------
  27.  
  28. BIOS (3)        WRITE CHARACTER TO DEVICE        Void Bios (3,5,Char)
  29.  
  30.         Characters with ASCII Codes between 32 & 255 can be displayed
  31.         by the Chr$(Char) Command. Characters with Codes between
  32.         0 & 31 are Control Characters and will not be Displayed by
  33.         the Chr$(char) Command.
  34.         This BIOS Function will Display any ASCII Code between
  35.         0 & 255. Char is the ASCII Code to be Displayed.
  36.  
  37.         EXAMPLE: To Display ASCII Code 2 ( Down Arrow ) Enter
  38.                  Void Bios (3,5,2)
  39.  
  40.  
  41. BIOS (10)    INQUIRE DRIVE STATUS              Drv_stat = Bios (10)
  42.  
  43.         Returns a Number that indicates which Disk Drives are Active.
  44.         Even if One Drive is Active, Two Logical Drives are Assumed.
  45.         The Number that is returned, is a Bit Vector. 
  46.  
  47.         EXAMPLE: The easiest way to see how this works, is to enter
  48.              the following Example.
  49.  
  50.         Drv_stat = Bios (10)
  51.         Print Bin$(Drv_stat)
  52.         Print Drv_stat
  53.  
  54.         If Drive A: or B: or A: & B: are Active
  55.                                                     Bin$(Drv_stat) = 11
  56.                                             Drv_stat = 3
  57.         If Drives A:, B:, & C: are Active   Bin$(Drv_sta) = 111
  58.                                             Drv_stat       = 7
  59.         If Drives A:, B:, & D: are Active   Bin$(Drv_stat) = 1011
  60.                                             Drv_stat       = 11
  61.         If Drives A:, B:, & E: are Active   Bin$(Drv_stat) = 10011
  62.                                             Drv_stat       = 19
  63.         Ect.
  64. -------------------------------------------------------------------------------
  65.  
  66.  
  67.  
  68. XBIOS (4)    SCREEN RESOLUTION        Rez = Xbios (4)
  69.  
  70.         Returns the Current Screen Resolution
  71.  
  72.         0 = Low    Resolution
  73.         1 = Medium Resolution
  74.         2 = High   Resolution
  75.  
  76.  
  77. XBIOS (21)    SET CURSOR CONFIGURATION      Cur_conf = Xbios (21,Func,Rate)
  78.  
  79.         Sets the Cursor Configuration.
  80.  
  81.         Func = 0 = Disable Cursor
  82.                1 = Enable  Cursor
  83.                2 = Flash   Cursor
  84.                3 = Steady  Cursor
  85.                4 = Set Cursor Flash Rate. (Only time Rate is required)
  86.                5 = Get Cursor Flash Rate. (Only time Cur_conf is
  87.                                            required. Otherwise Void
  88.                                            can be used)
  89.  
  90.         EXAMPLE: To Flash the Cursor enter.
  91.  
  92.                  Void Xbios (21,2)
  93.  
  94.                  To Set the Flash Rate to 10 enter
  95.  
  96.              Void Xbios (21,4,10)
  97.  
  98.                  To Get the Flash Rate enter
  99.  
  100.                  Cur_Conf = Xbios (21,5)
  101.  
  102. ------------------------------------------------------------------------------
  103.